package com.rules.admin.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rules.admin.json.Long2String;
import com.rules.admin.json.String2Long;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("rul_sys_resource")
public class SysResource implements Serializable {
    @JsonSerialize(
            using = Long2String.class
    )
    @JsonDeserialize(
            using = String2Long.class
    )
    @TableId
    private Long resourceId;

    private String resourceName;

    private String url;

    private String urlLx;

    private String urlImg;

    private Integer urlLevel;

    private Integer urlSeq;

    private String urlTitle;

    private Boolean status;

    private String createrId;

    private Date createTime;

    private String updaterId;
    private static final long serialVersionUID = 1L;

    public SysResource() {
    }

}
